﻿Public Class AspFormsAuthenticationRepository
    Implements IFormsAuthenticationRepository

    Public Sub SignIn(ByVal userName As String, ByVal createPersistentCookie As Boolean) Implements IFormsAuthenticationRepository.SignIn
        userName.FailIfEmpty("userName")

        FormsAuthentication.SetAuthCookie(userName, createPersistentCookie)
    End Sub

    Public Sub SignOut() Implements IFormsAuthenticationRepository.SignOut
        FormsAuthentication.SignOut()
    End Sub
End Class
